﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 分支结构练习
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int mathScore = 89;
            int chineseScore = 93;
            if(mathScore > chineseScore)
            {
                Console.WriteLine("数学成绩好");
            }
            else
            {
                Console.WriteLine("语文成绩好");
            }

            int age = 30;
            if(age > 23)
            {
                Console.WriteLine("你到了结婚的年龄了");
            }

            int musicScore = 81;
            if((chineseScore > 90 && musicScore > 80) || (chineseScore == 100 && musicScore > 70))
            {
                Console.WriteLine("光头强得到奖励100元");
            }

            string name = "admin";
            string pass = "mypass";
            if(name == "admin" && pass == "mypass") 
            {
                Console.WriteLine("登录成功");
            }
        }
    }
}
